<template>
	<view class="login_bg">
		<view class="like_top">
			<view class="back">
				<view class="back_img" @click="personal()"><image src="../../static/images/left.png" mode="widthFix"></image></view>
			</view>
			<p class="like">设置</p>
		</view>
		<view class="set">
			<view class="set_list"  @click="yinsizhongxin()">
				<view class="set_list_left">隐私中心</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
			<view class="set_list"  @click="heimingdan()" >
				<view class="set_list_left">黑名单</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
			<view class="set_list"  @click="zhanghaoanquan()">
				<view class="set_list_left">账号与安全</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
			<view class="set_list">
				<view class="set_list_left">清除缓存</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
			<view class="set_list">
				<view class="set_list_left">用户隐私政策</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
			<view class="set_list">
				<view class="set_list_left">第三方SDK说明</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
			<view class="set_list" @click="about()">
				<view class="set_list_left">关于我们</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>

			<view class="set_list" @click="loginOut">
				<view class="set_list_left">退出登录</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				 showPopup: false
			}
		},
	  methods: {
		  about(){
			  uni.navigateTo({
			  	url:'/pages/about/about'
			  })
		  },
		  zhanghaoanquan(){
			  uni.navigateTo({
			  	url:'/pages/zhanghaoanquan/zhanghaoanquan'
			  })
		  },
		  heimingdan(){
			  uni.navigateTo({
			  	url:'/pages/heimingdan/heimingdan'
			  })
		  },
		  personal(){
		  	uni.navigateBack({
		  	           delta:1
		  	        });
		  },
		  yinsizhongxin(){
		  	uni.navigateTo({
		  	            url:'/pages/yinsizhongxin/yinsizhongxin'
		  	        });
		  },
	    loginOut() {
	      uni.showModal({
	        title: '提示',
	        content: '确定退出登录吗？',
	        success: function (res) {
	          if (res.confirm) {
	            uni.removeStorageSync('token');
	            uni.removeStorageSync('nickname');
	            uni.removeStorageSync('sex');
				uni.switchTab({
					url:'/pages/index/index'
				})
	          } else if (res.cancel) {
	            console.log('用户点击取消');
	          }
	        }
	      });
	    }
	  }
	}
</script>

<style>
  @import "../../static/css/set.css";
</style>
